package com.zwl.smartplatform.service;

import com.zwl.smartplatform.pojo.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryService {
    //添加分类
    void addCategory(Category category);
    //更新
    int updateCategory(Category category);
    //按id查询
    Category selectById(Long cId);
    //查询所有
    List<Category> selectAllCategories();
    //根据名字模糊查询
    List<Category> selectCategoriesByNameLike(String cName);
    //根据id删除
    int deleteCategoriesByIds( List<Long> ids);

}
